/**
 * Xinfei.com Inc.
 * Copyright (c) 2004-2023 All Rights Reserved.
 */
package com.xinfei.techplayprod.test.usercontroller.addoredit;

import com.xinfei.techplayprod.biz.rr.UserRequest;
import com.xinfei.techplayprod.biz.rr.UserResponse;
import com.xinfei.techplayprod.test.base.AdvanceDevTestBase;
import org.springframework.web.bind.annotation.RequestBody;

/**
 *
 * @author Chengsheng.Li
 * @version $ UserControllerBase, v 0.1 2023/12/27 15:28 Chengsheng.Li Exp $
 */

public class UserControllerBase extends AdvanceDevTestBase {

    public UserResponse addOrEdit(@RequestBody UserRequest request) {
        try {
            return post("user/addOrEdit", request, UserResponse.class);
        }catch (Throwable e){
            throw new RuntimeException(e);
        }
    }

}